package com.hxx.utils;

import java.sql.Connection;
import java.sql.DriverManager;

public class DbManager {

	private DbManager(){}
	private static DbManager db = new DbManager();
	public static DbManager getInstance(){
		return db;
	}
	public Connection getConn(){
		Connection con = null;
		try {
			Class.forName("com.mysql.cj.jdbc.Driver");
			con = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/hxx",
					"root",
					"root");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return con;
	}
}
